package com.apex.restful.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018/3/6
 */
@Entity
@Table(name = "TDT_KNSSQXX")
public class TdtKnssqxx {
    private Long id;
    private Long nd;
    private String userid;
    private Long xm;
    private String sfzhm;
    private String sjhm;
    private String sss;
    private String city;
    private String ssx;
    private Integer xsxxjd;
    private Long xsxb;
    private Integer hjszq;
    private Integer hjszqdf;
    private Integer xsjtlx;
    private Integer xsjtlxdf;
    private Integer xsjtcy;
    private Integer xsjtcydf;
    private Integer xdjmjyqk;
    private Integer jyqkdf;
    private Integer xsfqwhcd;
    private Integer xsfqwhcddf;
    private Integer mqwhcd;
    private Integer mqwhcddf;
    private Integer fqzy;
    private Integer fqzydf;
    private Integer mqzy;
    private Integer mqzydf;
    private Integer jtsr;
    private Integer jtsrdf;
    private Integer jtzf;
    private Integer jtzfdf;
    private String jtzc;
    private String jtzcdf;
    private Integer ndxfze;
    private Integer ndxfzedf;
    private Integer xsmrzc;
    private Integer xsmrzcdf;
    private Integer pjmyzc;
    private Integer pjmyzcdf;
    private Integer jjcsqk;
    private Integer jjcsqkdf;
    private Integer sylrqk;
    private String sylrqkdf;
    private Integer zdf;
    private String zrzhszqk;
    private Long sfbxxx;
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date cjsj;

    @Id
    @Column(name = "ID")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "ND")
    public Long getNd() {
        return nd;
    }

    public void setNd(Long nd) {
        this.nd = nd;
    }

    @Basic
    @Column(name = "USERID")
    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    @Basic
    @Column(name = "XM")
    public Long getXm() {
        return xm;
    }

    public void setXm(Long xm) {
        this.xm = xm;
    }

    @Basic
    @Column(name = "SFZHM")
    public String getSfzhm() {
        return sfzhm;
    }

    public void setSfzhm(String sfzhm) {
        this.sfzhm = sfzhm;
    }

    @Basic
    @Column(name = "SJHM")
    public String getSjhm() {
        return sjhm;
    }

    public void setSjhm(String sjhm) {
        this.sjhm = sjhm;
    }

    @Basic
    @Column(name = "SSS")
    public String getSss() {
        return sss;
    }

    public void setSss(String sss) {
        this.sss = sss;
    }

    @Basic
    @Column(name = "CITY")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "SSX")
    public String getSsx() {
        return ssx;
    }

    public void setSsx(String ssx) {
        this.ssx = ssx;
    }

    @Basic
    @Column(name = "XSXXJD")
    public Integer getXsxxjd() {
        return xsxxjd;
    }

    public void setXsxxjd(Integer xsxxjd) {
        this.xsxxjd = xsxxjd;
    }

    @Basic
    @Column(name = "XSXB")
    public Long getXsxb() {
        return xsxb;
    }

    public void setXsxb(Long xsxb) {
        this.xsxb = xsxb;
    }

    @Basic
    @Column(name = "HJSZQ")
    public Integer getHjszq() {
        return hjszq;
    }

    public void setHjszq(Integer hjszq) {
        this.hjszq = hjszq;
    }

    @Basic
    @Column(name = "HJSZQDF")
    public Integer getHjszqdf() {
        return hjszqdf;
    }

    public void setHjszqdf(Integer hjszqdf) {
        this.hjszqdf = hjszqdf;
    }

    @Basic
    @Column(name = "XSJTLX")
    public Integer getXsjtlx() {
        return xsjtlx;
    }

    public void setXsjtlx(Integer xsjtlx) {
        this.xsjtlx = xsjtlx;
    }

    @Basic
    @Column(name = "XSJTLXDF")
    public Integer getXsjtlxdf() {
        return xsjtlxdf;
    }

    public void setXsjtlxdf(Integer xsjtlxdf) {
        this.xsjtlxdf = xsjtlxdf;
    }

    @Basic
    @Column(name = "XSJTCY")
    public Integer getXsjtcy() {
        return xsjtcy;
    }

    public void setXsjtcy(Integer xsjtcy) {
        this.xsjtcy = xsjtcy;
    }

    @Basic
    @Column(name = "XSJTCYDF")
    public Integer getXsjtcydf() {
        return xsjtcydf;
    }

    public void setXsjtcydf(Integer xsjtcydf) {
        this.xsjtcydf = xsjtcydf;
    }

    @Basic
    @Column(name = "XDJMJYQK")
    public Integer getXdjmjyqk() {
        return xdjmjyqk;
    }

    public void setXdjmjyqk(Integer xdjmjyqk) {
        this.xdjmjyqk = xdjmjyqk;
    }

    @Basic
    @Column(name = "JYQKDF")
    public Integer getJyqkdf() {
        return jyqkdf;
    }

    public void setJyqkdf(Integer jyqkdf) {
        this.jyqkdf = jyqkdf;
    }

    @Basic
    @Column(name = "XSFQWHCD")
    public Integer getXsfqwhcd() {
        return xsfqwhcd;
    }

    public void setXsfqwhcd(Integer xsfqwhcd) {
        this.xsfqwhcd = xsfqwhcd;
    }

    @Basic
    @Column(name = "XSFQWHCDDF")
    public Integer getXsfqwhcddf() {
        return xsfqwhcddf;
    }

    public void setXsfqwhcddf(Integer xsfqwhcddf) {
        this.xsfqwhcddf = xsfqwhcddf;
    }

    @Basic
    @Column(name = "MQWHCD")
    public Integer getMqwhcd() {
        return mqwhcd;
    }

    public void setMqwhcd(Integer mqwhcd) {
        this.mqwhcd = mqwhcd;
    }

    @Basic
    @Column(name = "MQWHCDDF")
    public Integer getMqwhcddf() {
        return mqwhcddf;
    }

    public void setMqwhcddf(Integer mqwhcddf) {
        this.mqwhcddf = mqwhcddf;
    }

    @Basic
    @Column(name = "FQZY")
    public Integer getFqzy() {
        return fqzy;
    }

    public void setFqzy(Integer fqzy) {
        this.fqzy = fqzy;
    }

    @Basic
    @Column(name = "FQZYDF")
    public Integer getFqzydf() {
        return fqzydf;
    }

    public void setFqzydf(Integer fqzydf) {
        this.fqzydf = fqzydf;
    }

    @Basic
    @Column(name = "MQZY")
    public Integer getMqzy() {
        return mqzy;
    }

    public void setMqzy(Integer mqzy) {
        this.mqzy = mqzy;
    }

    @Basic
    @Column(name = "MQZYDF")
    public Integer getMqzydf() {
        return mqzydf;
    }

    public void setMqzydf(Integer mqzydf) {
        this.mqzydf = mqzydf;
    }

    @Basic
    @Column(name = "JTSR")
    public Integer getJtsr() {
        return jtsr;
    }

    public void setJtsr(Integer jtsr) {
        this.jtsr = jtsr;
    }

    @Basic
    @Column(name = "JTSRDF")
    public Integer getJtsrdf() {
        return jtsrdf;
    }

    public void setJtsrdf(Integer jtsrdf) {
        this.jtsrdf = jtsrdf;
    }

    @Basic
    @Column(name = "JTZF")
    public Integer getJtzf() {
        return jtzf;
    }

    public void setJtzf(Integer jtzf) {
        this.jtzf = jtzf;
    }

    @Basic
    @Column(name = "JTZFDF")
    public Integer getJtzfdf() {
        return jtzfdf;
    }

    public void setJtzfdf(Integer jtzfdf) {
        this.jtzfdf = jtzfdf;
    }

    @Basic
    @Column(name = "JTZC")
    public String getJtzc() {
        return jtzc;
    }

    public void setJtzc(String jtzc) {
        this.jtzc = jtzc;
    }

    @Basic
    @Column(name = "JTZCDF")
    public String getJtzcdf() {
        return jtzcdf;
    }

    public void setJtzcdf(String jtzcdf) {
        this.jtzcdf = jtzcdf;
    }

    @Basic
    @Column(name = "NDXFZE")
    public Integer getNdxfze() {
        return ndxfze;
    }

    public void setNdxfze(Integer ndxfze) {
        this.ndxfze = ndxfze;
    }

    @Basic
    @Column(name = "NDXFZEDF")
    public Integer getNdxfzedf() {
        return ndxfzedf;
    }

    public void setNdxfzedf(Integer ndxfzedf) {
        this.ndxfzedf = ndxfzedf;
    }

    @Basic
    @Column(name = "XSMRZC")
    public Integer getXsmrzc() {
        return xsmrzc;
    }

    public void setXsmrzc(Integer xsmrzc) {
        this.xsmrzc = xsmrzc;
    }

    @Basic
    @Column(name = "XSMRZCDF")
    public Integer getXsmrzcdf() {
        return xsmrzcdf;
    }

    public void setXsmrzcdf(Integer xsmrzcdf) {
        this.xsmrzcdf = xsmrzcdf;
    }

    @Basic
    @Column(name = "PJMYZC")
    public Integer getPjmyzc() {
        return pjmyzc;
    }

    public void setPjmyzc(Integer pjmyzc) {
        this.pjmyzc = pjmyzc;
    }

    @Basic
    @Column(name = "PJMYZCDF")
    public Integer getPjmyzcdf() {
        return pjmyzcdf;
    }

    public void setPjmyzcdf(Integer pjmyzcdf) {
        this.pjmyzcdf = pjmyzcdf;
    }

    @Basic
    @Column(name = "JJCSQK")
    public Integer getJjcsqk() {
        return jjcsqk;
    }

    public void setJjcsqk(Integer jjcsqk) {
        this.jjcsqk = jjcsqk;
    }

    @Basic
    @Column(name = "JJCSQKDF")
    public Integer getJjcsqkdf() {
        return jjcsqkdf;
    }

    public void setJjcsqkdf(Integer jjcsqkdf) {
        this.jjcsqkdf = jjcsqkdf;
    }

    @Basic
    @Column(name = "SYLRQK")
    public Integer getSylrqk() {
        return sylrqk;
    }

    public void setSylrqk(Integer sylrqk) {
        this.sylrqk = sylrqk;
    }

    @Basic
    @Column(name = "SYLRQKDF")
    public String getSylrqkdf() {
        return sylrqkdf;
    }

    public void setSylrqkdf(String sylrqkdf) {
        this.sylrqkdf = sylrqkdf;
    }

    @Basic
    @Column(name = "ZDF")
    public Integer getZdf() {
        return zdf;
    }

    public void setZdf(Integer zdf) {
        this.zdf = zdf;
    }

    @Basic
    @Column(name = "ZRZHSZQK")
    public String getZrzhszqk() {
        return zrzhszqk;
    }

    public void setZrzhszqk(String zrzhszqk) {
        this.zrzhszqk = zrzhszqk;
    }

    @Basic
    @Column(name = "SFBXXX")
    public Long getSfbxxx() {
        return sfbxxx;
    }

    public void setSfbxxx(Long sfbxxx) {
        this.sfbxxx = sfbxxx;
    }

    @Basic
    @Column(name="CJSJ")
    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TdtKnssqxx that = (TdtKnssqxx) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(nd, that.nd) &&
                Objects.equals(userid, that.userid) &&
                Objects.equals(xm, that.xm) &&
                Objects.equals(sfzhm, that.sfzhm) &&
                Objects.equals(sjhm, that.sjhm) &&
                Objects.equals(sss, that.sss) &&
                Objects.equals(city, that.city) &&
                Objects.equals(ssx, that.ssx) &&
                Objects.equals(xsxxjd, that.xsxxjd) &&
                Objects.equals(xsxb, that.xsxb) &&
                Objects.equals(hjszq, that.hjszq) &&
                Objects.equals(hjszqdf, that.hjszqdf) &&
                Objects.equals(xsjtlx, that.xsjtlx) &&
                Objects.equals(xsjtlxdf, that.xsjtlxdf) &&
                Objects.equals(xsjtcy, that.xsjtcy) &&
                Objects.equals(xsjtcydf, that.xsjtcydf) &&
                Objects.equals(xdjmjyqk, that.xdjmjyqk) &&
                Objects.equals(jyqkdf, that.jyqkdf) &&
                Objects.equals(xsfqwhcd, that.xsfqwhcd) &&
                Objects.equals(xsfqwhcddf, that.xsfqwhcddf) &&
                Objects.equals(mqwhcd, that.mqwhcd) &&
                Objects.equals(mqwhcddf, that.mqwhcddf) &&
                Objects.equals(fqzy, that.fqzy) &&
                Objects.equals(fqzydf, that.fqzydf) &&
                Objects.equals(mqzy, that.mqzy) &&
                Objects.equals(mqzydf, that.mqzydf) &&
                Objects.equals(jtsr, that.jtsr) &&
                Objects.equals(jtsrdf, that.jtsrdf) &&
                Objects.equals(jtzf, that.jtzf) &&
                Objects.equals(jtzfdf, that.jtzfdf) &&
                Objects.equals(jtzc, that.jtzc) &&
                Objects.equals(jtzcdf, that.jtzcdf) &&
                Objects.equals(ndxfze, that.ndxfze) &&
                Objects.equals(ndxfzedf, that.ndxfzedf) &&
                Objects.equals(xsmrzc, that.xsmrzc) &&
                Objects.equals(xsmrzcdf, that.xsmrzcdf) &&
                Objects.equals(pjmyzc, that.pjmyzc) &&
                Objects.equals(pjmyzcdf, that.pjmyzcdf) &&
                Objects.equals(jjcsqk, that.jjcsqk) &&
                Objects.equals(jjcsqkdf, that.jjcsqkdf) &&
                Objects.equals(sylrqk, that.sylrqk) &&
                Objects.equals(sylrqkdf, that.sylrqkdf) &&
                Objects.equals(zdf, that.zdf) &&
                Objects.equals(zrzhszqk, that.zrzhszqk) &&
                Objects.equals(sfbxxx, that.sfbxxx);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, nd, userid, xm, sfzhm, sjhm, sss, city, ssx, xsxxjd, xsxb, hjszq, hjszqdf, xsjtlx, xsjtlxdf, xsjtcy, xsjtcydf, xdjmjyqk, jyqkdf, xsfqwhcd, xsfqwhcddf, mqwhcd, mqwhcddf, fqzy, fqzydf, mqzy, mqzydf, jtsr, jtsrdf, jtzf, jtzfdf, jtzc, jtzcdf, ndxfze, ndxfzedf, xsmrzc, xsmrzcdf, pjmyzc, pjmyzcdf, jjcsqk, jjcsqkdf, sylrqk, sylrqkdf, zdf, zrzhszqk, sfbxxx);
    }
}
